libostree: Make OstreeTlsCertInteraction explicitly private
authorColin Walters <walters@verbum.org>
Sun, 8 Jun 2014 11:58:12 +0000 (07:58 -0400)
committerColin Walters <walters@verbum.org>
Mon, 9 Jun 2014 18:04:53 +0000 (14:04 -0400)
Similar to previous commit, this should be private.

https://bugzilla.gnome.org/show_bug.cgi?id=731369

src/libostree/ostree-fetcher.c
src/libostree/ostree-tls-cert-interaction.c
src/libostree/ostree-tls-cert-interaction.h

index 92dd0a047676708a90b551045601a703bc4d6683..24df14b639f8c58c5eac6ab23f739b2588a817bd 100644 (file)
@@ -225,7 +225,7 @@ ostree_fetcher_set_client_cert (OstreeFetcher *fetcher,
     {
 #ifdef HAVE_LIBSOUP_CLIENT_CERTS
       gs_unref_object GTlsInteraction *interaction =
-        (GTlsInteraction*)ostree_tls_cert_interaction_new (fetcher->client_cert);
+        (GTlsInteraction*)_ostree_tls_cert_interaction_new (fetcher->client_cert);
       g_object_set (fetcher->session, "tls-interaction", interaction, NULL);
 #else
       g_warning ("This version of OSTree is compiled without client side certificate support");
index 63de91730d229804d9e0e2ffa98882e3935e9df4..846d5725fc3790b503485c9f0e78ec98f9349edf 100644 (file)
@@ -34,7 +34,7 @@ struct _OstreeTlsCertInteractionClass
 
 #include <string.h>
 
-G_DEFINE_TYPE (OstreeTlsCertInteraction, ostree_tls_cert_interaction, G_TYPE_TLS_INTERACTION);
+G_DEFINE_TYPE (OstreeTlsCertInteraction, _ostree_tls_cert_interaction, G_TYPE_TLS_INTERACTION);
 
 static GTlsInteractionResult
 request_certificate (GTlsInteraction              *interaction,
@@ -49,19 +49,19 @@ request_certificate (GTlsInteraction              *interaction,
 }
 
 static void
-ostree_tls_cert_interaction_init (OstreeTlsCertInteraction *interaction)
+_ostree_tls_cert_interaction_init (OstreeTlsCertInteraction *interaction)
 {
 }
 
 static void
-ostree_tls_cert_interaction_class_init (OstreeTlsCertInteractionClass *klass)
+_ostree_tls_cert_interaction_class_init (OstreeTlsCertInteractionClass *klass)
 {
   GTlsInteractionClass *interaction_class = G_TLS_INTERACTION_CLASS (klass);
   interaction_class->request_certificate = request_certificate;
 }
 
 OstreeTlsCertInteraction *
-ostree_tls_cert_interaction_new (GTlsCertificate *cert)
+_ostree_tls_cert_interaction_new (GTlsCertificate *cert)
 {
   OstreeTlsCertInteraction *self = g_object_new (OSTREE_TYPE_TLS_CERT_INTERACTION, NULL);
   self->cert = g_object_ref (cert);
index ca9cd325fc7fc3ca687ddf63e14fc6d7e01f58ea..c81097c5e395ed3472a3a3ceddb364e95e58a3b5 100644 (file)
@@ -22,7 +22,7 @@
 
 G_BEGIN_DECLS
 
-#define OSTREE_TYPE_TLS_CERT_INTERACTION         (ostree_tls_cert_interaction_get_type ())
+#define OSTREE_TYPE_TLS_CERT_INTERACTION         (_ostree_tls_cert_interaction_get_type ())
 #define OSTREE_TLS_CERT_INTERACTION(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), OSTREE_TYPE_TLS_CERT_INTERACTION, OstreeTlsCertInteraction))
 #define OSTREE_TLS_CERT_INTERACTION_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), OSTREE_TYPE_TLS_CERT_INTERACTION, OstreeTlsCertInteractionClass))
 #define OSTREE_IS_TLS_CERT_INTERACTION(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), OSTREE_TYPE_TLS_CERT_INTERACTION))
@@ -32,8 +32,8 @@ G_BEGIN_DECLS
 typedef struct _OstreeTlsCertInteraction        OstreeTlsCertInteraction;
 typedef struct _OstreeTlsCertInteractionClass   OstreeTlsCertInteractionClass;
 
-GType                       ostree_tls_cert_interaction_get_type    (void) G_GNUC_CONST;
+GType                       _ostree_tls_cert_interaction_get_type    (void) G_GNUC_CONST;
 
-OstreeTlsCertInteraction *  ostree_tls_cert_interaction_new         (GTlsCertificate *cert);
+OstreeTlsCertInteraction *  _ostree_tls_cert_interaction_new         (GTlsCertificate *cert);
 
 G_END_DECLS